package com.joven.shelltest.controller;

import com.joven.shelltest.entity.SignValueModel;
import com.joven.shelltest.service.SignValueService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wzj
 * @since 2024/7/8 9:24
 */
@RestController
@RequestMapping("/helloOne")
@RequiredArgsConstructor
public class OtherTestOneController {

    private final SignValueService signValueService;

    @GetMapping("/helloDb")
    public SignValueModel helloDb(String id) {
        return signValueService.getById(id);
    }
}
